package model;

import java.util.ArrayList;

import javax.swing.JOptionPane;
/**
 * @author Christian
 * Class which represents the user.
 * In this class the user variables is declared. The unique primary key is ID
 */
public class Account  
{
	/** Declares the variables of the class.*/
	private String iD; // Users ID consists of the persons CPR-number.
	private int accountNumber; // An unique accountNumber is auto-incremented to the Account.
	private double balance; // the balance for each account, contains an amount.
	private String accountName;
	
	/** Constructor initializes variables
	 * @param iD
	 * @param accountNumber
	 * @param balance */
	public Account(String iD, int accountNumber, double balance, String accountName) 
	{
		super();
		this.iD = iD;
		this.accountNumber = accountNumber;
		this.balance = balance;
		this.accountName = accountName;
	}
	
	/** @return ID to ModelClass.*/
	public String getiD() 
	{
		return iD;
	}

	/** Changes integer through ModelClass.
	 * @param iD */
	public void setiD(String iD) 
	{
		this.iD = iD;
	}

/** @return balance to ModelClass.
 */
	public double getBalance() 
	{
		return balance;
	}

/**Changes double through ModelClass.
 * @param balance
 */
	public void setBalance(double balance) 
	{
		this.balance = balance;
	}

/**
 * @return the accountNumber
 */
public int getAccountNumber() {
	return accountNumber;
}

/**
 * @param accountNumber the accountNumber to set
 */
public void setAccountNumber(int accountNumber) {
	this.accountNumber = accountNumber;
}

/**
 * @return the accountName
 */
public String getAccountName() {
	return accountName;
}

/**
 * @param accountName the accountName to set
 */
public void setAccountName(String accountName) {
	this.accountName = accountName;
}

} // end Class Account.java
